package com.twu.biblioteca;

import java.io.BufferedReader;
import java.io.IOError;
import java.io.IOException;

public class ConsoleInput {
    private BufferedReader bufferedReader;

    public ConsoleInput(BufferedReader bufferedReader)
    {
        this.bufferedReader = bufferedReader;
    }

    public String ReadLine()
    {
        try{
            return bufferedReader.readLine();
        }
        catch(IOException ioException)
        {
            throw new RuntimeException("An IO Exception occurred", ioException.getCause());
        }
    }
}
